﻿#include "cconfigeditplugin.h"

CConfigEditPlugin::CConfigEditPlugin(QWidget *parent)
    : CTableEditPlugin{parent}
{
    QHBoxLayout* titleLayout = new QHBoxLayout;
    QPushButton* m_addbtn = new QPushButton("添加", this);
    QPushButton* m_delbtn = new QPushButton("删除选中", this);
    titleLayout->addStretch(1);
    titleLayout->addWidget(m_delbtn);
    titleLayout->addWidget(m_addbtn);

    QVBoxLayout* mainLayout = new QVBoxLayout;
    mainLayout->addLayout(titleLayout);
    mainLayout->addStretch(1);

    this->setWindowTitle("信号详细配置");
    this->setLayout(mainLayout);
}

bool CConfigEditPlugin::parseData(QString data)
{
    return true;
}

QString CConfigEditPlugin::readData()
{
    return "hello_world";
}
